package com.wiserun.RestFul.mapper;

import com.wiserun.RestFul.model.User;
import com.wiserun.RestFul.model.UserOrg;
import com.wiserun.RestFul.model.UserRecord;
import com.wiserun.common.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Mapper
public interface PncsUserOrgMapper  extends BaseMapper<User> {
    //add
    int addUserOrg(UserOrg userOrg);
    //根据userid 删除
    int deleteByUserId(String userid);
    //根据entity查询
    List<UserOrg> query(UserOrg userOrg);
    //根据userid 修改信息
    int update(UserOrg userOrg);
    //查询是否存在 返回数量 没有返回0
    int isExist(UserOrg userOrg);
}
